package com.umakr.ax.common.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.umakr.ax.common.model.InteractiveLottery;
import com.umakr.ax.core.base.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.Map;

/**
 * <p>
 * Mapper接口
 * </p>
 *
 * @author zj
 * @since 2018-5-5
 */
public interface InteractiveLotteryMapper extends BaseMapper<InteractiveLottery> {
    Page<Map<String,Object>> listLotteryHistory(@Param("rsId") Long rsId,@Param("lotteryName")String lotteryName);

    Long saveLottery(InteractiveLottery interactiveLottery);

    void updateLottery(InteractiveLottery interactiveLottery);

    void deleteLottery(@Param("lotteryId") Long lotteryId);

    void updateLotteryStatusById(@Param("lotteryId") Long lotteryId,
                                 @Param("totalPeople") Integer totalPeople);

    void updataInformStatus(@Param("lotteryId") Long lotteryId,@Param("informStatus") Integer informStatus);

    void updataDrawInfoById(@Param("lotteryId") Long lotteryId,
                            @Param("drawUserId") Long drawUserId,
                            @Param("drawTime") Date drawTime,
                            @Param("drawUserName") String drawUserName);
}